from tkinter import *


root=Tk()

s1=Scale(root,from_=0,to=42,tickinterval=5,length=200,\
         resolution=5,orient=VERTICAL)
s1.pack()
s2=Scale(root, from_=0, to=200, orient=HORIZONTAL,\
         tickinterval=10,length=600)
s2.pack()

Button(root,text='确定',command = lambda:print(s1.get(),s2.get())).pack()

mainloop()
